package factory.factory;

import factory.item.Suit;
import factory.item.impl.Clothes;
import factory.item.impl.Shoes;
import factory.item.impl.Trousers;

public class Factory {
    public Suit getSuit(String suit) {
        if(suit == null){
            return null;
        }
        if(suit.equalsIgnoreCase("clothes")){
            return new Clothes();
        } else if(suit.equalsIgnoreCase("trousers")){
            return new Trousers();
        } else if(suit.equalsIgnoreCase("shoes")){
            return new Shoes();
        }
        return null;
    }
}
